const KEY ='token'

//存
const saveToken =(obj)=>{
    localStorage.setItem(KEY,JSON.stringify(obj))
}
//取
const getToken =()=>{
    return JSON.parse(localStorage.getItem(KEY))
}
//删
const removeToken =()=>{
    localStorage.removeItem(KEY)
}
export {saveToken,getToken,removeToken}